package com.fivefu.core.hillstone.constant;

public enum HillstoneRequestTypeEnum {

    LOGION_V1("LOGION_V1", "登录", "/videoService/accounts/authorize", 1),
    KEEPALIVE_V1("KEEPALIVE_V1", "token保活", "/videoService/accounts/token/keepalive", 1),
    DESTORY_V1("DESTORY_V1", "销毁会话", "/videoService/accounts/unauthorize",1),

    LOGION_V2("LOGION_V2", "登录", "/admin/API/accounts/authorize", 2),
    KEEPALIVE_V2("KEEPALIVE_V2", "token保活", "/admin/API/accounts/keepalive", 2),
    DESTORY_V2("DESTORY_V2", "销毁会话", "/admin/API/accounts/unauthorize",2),
    ;
    /**
     * 类型
     */
    private String type;

    /**
     * 描述
     */
    private String desc;

    /**
     * 接口地址
     */
    private String url;

    /**
     * 版本
     */
    private Integer version;

    public String getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    public String getUrl() {
        return url;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * @param type 类型
     * @param desc 描述
     * @param url 接口地址
     */
    HillstoneRequestTypeEnum(String type, String desc, String url, Integer version) {
        this.type = type;
        this.desc = desc;
        this.url = url;
        this.version = version;
    }

}
